<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

class Notice extends BaseModel
{
    use HasDateTimeFormatter;

    // 通知类型
    const TYPE_ORDER = 1;//订单
    const TYPE_SERVICE = 2;//服务
    const TYPE_SYSTEM = 3;//系统

    protected $table = 'notice';

    public static function typeMap()
    {
        return [self::TYPE_ORDER => '订单', self::TYPE_SERVICE => '服务', self::TYPE_SYSTEM => '系统'];
    }
}
